<%@ page language="java" import="java.util.*,dao.*,entity.*,jdbc.*,java.sql.Date" contentType="text/html; charset=utf-8"%>
<%--为了避免在jsp页面中出现java代码，这里引入jstl标签库，利用jstl标签库提供的标签来做一些逻辑判断处理 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	
	<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="css/iconic.css" media="screen" rel="stylesheet" type="text/css" /> 
	<link href="css/bookList.css" media="screen" rel="stylesheet" type="text/css" /> 

<style type="text/css">
		table.hovertable{
			font-family: verdana.arial,sans-serif;
			font-size: 13px;
			color:#333333;
			border-width: 1px;
			border-color: #999999;
			border-collapse: collapse;
		}
		
		table.hovertable th{
			background-color: #c3dde0;
			border-width: 1px;
			padding: 8px;
			border-style: solid;
			border-color: #a9c6c9;
		}
		
		table.hovertable tr{
			background-color: #d4e3e8;
		}
		
		table.hovertable td{
			border-width: 1px;
			padding: 25px;
			border-style: solid;
			border-color: #a9c6c9;
		}
	</style>
	

	
  </head>
  
  <body>
  <h1><center><Strong>图书管理系统</Strong></center></h1>
    
     <c:if test="${user==null}">
        <a href="${pageContext.request.contextPath}/servlet/RegisterUIServlet" target="_blank">注册</a>
        <a href="${pageContext.request.contextPath }/servlet/LoginUIServlet">登陆</a>
    </c:if>
   
   <c:if test="${user!=null }">
        欢迎你：${user.getName()}
        <input type="button" value="退出登录" onclick="doLogout()" >
      </c:if>
    <hr/>    
                <div class="wrap">
	
	<nav>
		<ul class="menu">
			<li><a href="${pageContext.request.contextPath }/servlet/IndexBookCheckServlet"><span class="iconic home"></span>主页</a></li>
			<li><a><span class="iconic plus-alt"></span>图书管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBookCheckServlet">查询图书</a></li>
					<li><a href="BookAdd.jsp">添加图书</a></li>
					<li><a href="systemmodifybook.jsp">修改图书信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBookDeleteCheckServlet">删除图书</a></li>
				</ul>
			</li>
			<li><a><span class="iconic magnifying-glass"></span>借阅管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllBorrowCheckServlet">借阅查询</a></li>
					<li><a href="systembookborrow.jsp">借书还书续借</a></li>
				</ul>
			</li>
			<li><a><span class="iconic map-pin"></span>用户管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/AllUserCheckServlet">用户查询</a></li>
					<li><a href="systemadduser.jsp">添加用户</a></li>
					<li><a href="systemmodifyuser.jsp">修改用户信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/AllUserDeleteCheckServlet">删除用户</a></li>
					
				</ul>
			</li>
			<li><a><span class="iconic mail"></span>个人信息管理</a>
				<ul>
					<li><a href="systempersonalinformation.jsp">个人信息</a></li>
					<li><a href="${pageContext.request.contextPath }/servlet/PersonalBorrowCheckServlet">个人借阅记录</a></li>
					<li><a href="systemmodifypassword.jsp">修改密码</a></li>
				</ul>
			</li>
			<li><a><span class="iconic mail"></span>数据库管理</a>
				<ul>
					<li><a href="${pageContext.request.contextPath }/servlet/CreateDatebase">创建数据库</a></li>
				
				</ul>
			</li>
		</ul>
		<div class="clearfix"></div>
	</nav>
	</div >

 
 <center>
     <h2>添加的书籍信息</h2> 
  
     <table class="hovertable">
       
    	<tr>
    	    <td>图书号:</td>
    		<td>${book.getBookid()}</td>
    	</tr>
    	<tr>
    	    <td>图书名:</td>
    		<td>${book.getBookname()}</td>
    	</tr>
    	<tr>
    	    <td>作者:</td>
    		<td>${book.getEditor()}</td>
    	</tr>
    	<tr>
    	    <td>价格:</td>
    	    <td>${book.getPrice()}</td>
    	</tr>
    	<tr>
    		<td>出版社:</td>
    		<td>${book.getPublish()}</td>
       </tr>
       <tr>
    		<td>出版日期:</td>
    		<td>${book.getPubdate()}</td>
       </tr>
       <tr>
            <td>库存量:</td>
            <td>${book.getQty()}</td>
       </tr>
    	
    
       </table>
   <form method="post" action="BookAdd.jsp" >
      <input type="submit" value="返回" class="" id=""> 
    </form>
   
 </center>  
       <br>
       <br>
    
   
  </body>
</html>
